﻿<UserControl x:Class="HMS.Report.ReportUserControls.DoctorPaySheetSummaryUserControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:toolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input.Toolkit"
             xmlns:xcpt="clr-namespace:Xceed.Wpf.Themes.Office2007;assembly=Xceed.Wpf.Themes.Office2007.v2.0"
             xmlns:cr="clr-namespace:SAPBusinessObjects.WPF.Viewer;assembly=SAPBusinessObjects.WPF.Viewer"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="875">
    <Grid>
        <DockPanel LastChildFill="True">

            <DockPanel  DockPanel.Dock="Top"   HorizontalAlignment="Stretch">

                <Expander Header="Report Options"  IsExpanded="True" Style="{StaticResource ControlBackgroundStyle}">
                    <Grid Height="93" Name="grid1">

                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="34*" />
                        </Grid.RowDefinitions>
                        <StackPanel Orientation="Vertical">
                            <StackPanel Orientation="Horizontal">
                                <Label Content="Doctor Name:" Style="{StaticResource RightAlignedControlLabelStyle}" />
                                <toolkit:AutoCompleteBox Name="DoctorAutocompleteTextBox" 
                                                 DataContext="{Binding}"
                                                 ValueMemberPath="Name"
                                                 IsTextCompletionEnabled="True"
                                                 Style="{StaticResource LeftAlignedControlAutoCompleteTextBoxStyle}" 
                                                 FilterMode="StartsWith" >

                                    <toolkit:AutoCompleteBox.ItemTemplate>
                                        <DataTemplate>
                                            <StackPanel Orientation="Horizontal">
                                                <TextBlock Text="{Binding Path=Title}"/>
                                                <TextBlock Text="{Binding Path=Name}"/>
                                            </StackPanel>
                                        </DataTemplate>
                                    </toolkit:AutoCompleteBox.ItemTemplate>
                                </toolkit:AutoCompleteBox>
                            </StackPanel>
                            <StackPanel Orientation="Horizontal">
                                <Label Content="As at :" VerticalAlignment="Top" Style="{StaticResource RightAlignedControlLabelStyle}" />
                                <DatePicker Name="AsAtDateDatePicker" Style="{StaticResource LeftAlignedControlDatePickerStyle}"  />
                                <Button Name="ViewReportButton"  Style="{StaticResource LargeButtonStyle}" Click="ViewReportButton_Click">
                                    <StackPanel Orientation="Horizontal" >
                                        <Image Source="HMS.Resources;component/images/icons/24x24/right.png" Style="{StaticResource Image24x24Style}" />
                                        <TextBlock FontSize="16" Style="{StaticResource ButtonTextControlTextBlockStyle}">View</TextBlock>
                                    </StackPanel>
                                </Button>
                            </StackPanel>
                        </StackPanel>

                    </Grid>
                </Expander>

            </DockPanel>



            <cr:CrystalReportsViewer Name="ReportViewer" DockPanel.Dock="Bottom"></cr:CrystalReportsViewer>
        </DockPanel>

    </Grid>
</UserControl>
